package com.czxy.demo01;

import com.czxy.config.SpringConfig;
import com.czxy.dao.UserDao;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Test01 {





    @Test
   public void  t01(){

        ApplicationContext applicationContext = new AnnotationConfigApplicationContext(SpringConfig.class);

        UserDao userDao = (UserDao)applicationContext.getBean("ud");

       userDao.findAll();


    }






}
